package com.person.leetcode.editor.cn;

/**
  * 136.只出现一次的数字
  * 2022-07-14 17:47:18
**/
public class Sequence_0136_SingleNumber {
    public static void main(String[] args) {
        Solution solution = new Sequence_0136_SingleNumber().new Solution();
    }
    //leetcode submit region begin(Prohibit modification and deletion)
class Solution {
    public int singleNumber(int[] nums) {
        int res = 0;
        for (int i = 0; i < nums.length; i++) {
            res ^= nums[i];
        }
        return res;
    }
}
//leetcode submit region end(Prohibit modification and deletion)

}